import aioredis, os

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')
from django.conf import settings


def async_redis():
    return aioredis.create_redis_pool(settings.REDIS_URL)
